@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --primary-color: #ff242e;
  --secondary-color: #ff552d;
  --background-color-1: #323b3f;
  --background-color-2: #37383c;
  --background-color-3: #464646;
  --extra-light: #dfdfdf;
  --white: #fff;
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 5rem 1rem;
}
.section__header {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--white);
  line-height: 3.25rem;
  text-align: center;
}
.section__description {
  font-size: 1rem;
  color: var(--extra-light);
  line-height: 1.75rem;
  text-align: center;
}
.btn {
  padding: 0.75rem 1.5rem;
  outline: none;
  border: none;
  color: var(--white);
  font-size: 1rem;
  white-space: nowrap;
  background-color: var(--primary-color);
  border-radius: 5px;
  transition: 0.3s;
  cursor: pointer;
}
img {
  display: flex;
  width: 100%;
}
a {
  text-decoration: none;
  transition: 0.3s;
}
ul {
  list-style: none;
}

html,
body {
  scroll-behavior: smooth;
}
body {
  font-family: "Poppins", "sans-serif";
}

header {
  background-color: #1d1b26;
  overflow: hidden;
}

nav {
  position: fixed;
  isolation: isolate;
  width: 100%;
  z-index: 9;

  .nav_header {
    padding: 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--primary-color);

    .nav_logo {
      img {
        max-width: 150px;
      }
    }

    .nav_menu_btn {
      font-size: 1.5rem;
      color: var(--white);
      cursor: pointer;
    }
  }

  .nav_links {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    background: var(--primary-color);
    transition: transform 0.5s;
    z-index: -1;

    &.open {
      transform: translateY(100%);
    }

    a {
      font-weight: 500;
      color: var(--white);
      white-space: nowrap;
    }

    .btn {
      padding: 0;
      font-weight: 500;
      background-color: var(--primary-color);
    }
  }
}

.header__container {
  display: grid;
  gap: 2rem;

  .header__image {
    img {
      max-width: 600px;
      margin-inline: auto;
    }
  }

  .header__content {
    h1 {
      margin-bottom: 1rem;
      font-size: 3rem;
      font-weight: 700;
      color: var(--white);
      line-height: 4rem;
      text-align: center;
    }

    .section__description {
      margin-bottom: 2rem;
    }
    .header__btn {
      margin-bottom: 2rem;
      text-align: center;
    }

    .header__stats {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1rem;

      h4 {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--white);
      }

      p {
        font-size: 0.9rem;
        color: var(--extra-light);
      }
    }
  }
}

.about {
  background: var(--background-color-1);
  overflow: hidden;

  .about__container {
    display: grid;
    gap: 2rem;

    .about__image {
      img {
        max-width: 500px;
        margin-inline: auto;
        border-radius: 1rem;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
      }
    }

    .about__content :is(.section__header, .section__description) {
      margin-bottom: 1rem;
    }

    .about__btn {
      margin-top: 2rem;
      text-align: center;
    }
  }
}

.program {
  background-color: var(--background-color-2);

  .program__header {
    display: grid;
    gap: 1rem 4rem;
  }

  .program__grid {
    display: grid;
    gap: 1rem;
    margin-top: 4rem;

    .program__card {
      padding: 1rem;
      border-radius: 1rem;
      background-color: var(--background-color-3);
      box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
      transition: 0.3s;

      &:hover {
        background-color: var(--secondary-color);
      }

      img {
        max-width: 75px;
        margin-bottom: 1rem;
      }

      h4 {
        padding-bottom: 0.5rem;
        font-size: 1.2rem;
        font-weight: 600;
        color: var(--white);
      }
      p {
        margin-bottom: 1rem;
        color: var(--extra-light);
        line-height: 1.75rem;
      }
      a {
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--extra-light);
      }
    }
  }
}

.service {
  background-color: var(--background-color-1);
  overflow: hidden;

  .service__container {
    display: grid;
    gap: 2rem;
    padding-block: 0;

    img {
      max-width: 400px;
      margin-inline: auto;
    }

    .service__content {
      padding-block: 5rem 0;

      .section__header {
        margin-bottom: 2rem;
      }

      .service__list {
        display: grid;
        grid-area: 1rem;

        h4 {
          margin-bottom: 0.5rem;
          font-size: 1.2rem;
          font-weight: 600;
          color: var(--white);
        }

        span i {
          margin-right: 10px;
          color: var(--secondary-color);
        }
      }

      .service_btn {
        margin-top: 2rem;
      }
    }
    .service__content :is(.section__header, .section__description) {
      text-align: left;
    }
  }
}

.testimonial {
  display: grid;
  background: var(--background-color-2);
  gap: 2rem;

  .testimonial__content {
    .section__header {
      margin-bottom: 1rem;
    }
  }

  .testimonal__swiper {
    overflow: hidden;
    padding: 0 1rem 5rem;

    .testimonial__card {
      padding: 1rem;
      border-radius: 1rem;
      background-color: var(--background-color-3);

      .user__details {
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        grid-area: 1rem;

        img {
          width: 60px;
          height: 60px;
          border-radius: 50%;
          object-fit: cover;
          padding: 2px;
          background-color: #fff;
          margin-right: 10px;
        }

        h4 {
          font-size: 1rem;
          font-weight: 600;
          color: var(--white);
        }
        h5 {
          font-size: 0.9rem;
          font-weight: 500;
          color: var(--extra-light);
        }
      }

      .user__ratings {
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 1.2rem;
        color: goldenrod;
      }

      .section__description {
        text-align: left;
      }
    }
  }
}

footer {
  background-color: var(--background-color-1);
  .footer__container {
    display: grid;
    gap: 4rem 1rem;

    .footer__col {
      h4 {
        margin-bottom: 1rem;
        font-size: 1.2rem;
        font-weight: 600;
        color: var(--white);
      }

      .footer__links {
        display: grid;
        gap: 1rem;

        a {
          color: var(--extra-light);

          &:hover {
            color: var(--primary-color);
          }

          span {
            margin-right: 10px;
            font-size: 1.2rem;
            color: var(--primary-color);
          }
        }
      }

      form {
        margin-bottom: 1rem;
        width: 100%;
        max-width: 350px;
        display: flex;
        align-items: center;
        background-color: var(--white);
        border-radius: 5rem;

        input {
          width: 100%;
          padding-inline: 1rem;
          font-size: 1rem;
          color: var(--background-color-2);
          outline: none;
          border: none;
          background-color: transparent;
        }
      }

      .btn {
        margin: 5px;
        padding: 12px 15px;
        font-size: 1.5rem;
        border-radius: 5rem;
      }

      p {
        font-size: 1rem;
        line-height: 1.75rem;
        color: var(--extra-light);
      }
    }
  }

  .footer__bar {
    padding-block: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
    border-top: 1px solid var(--extra-light);

    .footer__logo img {
      max-width: 150px;
    }

    p {
      font-size: 1rem;
      line-height: 1.75rem;
      color: var(--extra-light);
      text-align: center;
    }

    .footer__socials {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 1.5rem;

      a {
        padding: 2px 5px;
        color: var(--background-color-1);
        font-size: 1.125rem;
        background-color: var(--extra-light);
        border-radius: 50%;

        &:hover {
          color: var(--white);
          background-color: var(--primary-color);
        }
      }
    }
  }
}

@media (width > 540px) {
  .program__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width > 768px) {
  nav {
    position: static;
    padding: 2rem 1rem;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    /* max-width: var(--max-width); */

    .nav_header {
      padding: 0;
      background: transparent;

      img {
        max-width: 175px;
      }

      .nav_menu_btn {
        display: none;
      }
    }

    .nav_links {
      position: static;
      padding: 0;
      width: fit-content;
      flex-direction: row;
      background: transparent;
      transform: none;

      a:hover {
        color: var(--primary-color);
      }
      .btn {
        padding: 0.75rem 1.5rem;
      }
    }
  }

  .header__container {
    padding-block: 0;
    grid-template-columns: repeat(2, 1fr);
    align-items: flex-end;

    .header__image {
      /* grid-area: <row-start> / <column-start> / <row-end> / <column-end>; */
      grid-area: 1/2/2/3;
    }

    .header__content {
      padding-block: 5rem;

      .header__stats {
        justify-content: flex-start;
      }
    }

    .header__content :is(h1, .section__description, .header__btn) {
      text-align: left;
    }
  }

  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;

    .about__content :is(.section__header, .section__description, .about__btn) {
      text-align: left;
    }
  }

  .program_container {
    .program__header {
      grid-template-columns: repeat(2, 1fr);
    }
    .program__header :is(.section__header, .section__description) {
      text-align: left;
    }

    .program__grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }

  .service__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial {
    grid-template-columns: repeat(2, 1fr);

    .testimonial__content :is(.section__header, .section__description) {
      text-align: left;
    }

    .testimonal__swiper {
      padding-top: 5rem;
    }
  }

  .footer__container {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer__bar {
    flex-direction: row;
    justify-content: space-between;

    .footer__logo,
    .footer__socials {
      flex: 1;
    }

    .footer__socials {
      justify-content: flex-end;
    }
  }
}

@media (width > 1024px) {
  .program__grid {
    gap: 1.5rem;
  }

  .program__card {
    padding: 1.5rem;
  }

  .testimonial__card {
    padding: 1.5rem;
  }
}
